package June;

public class Test04String03Ascii {
    public static void main(String[] args) {
        String a="9999";
        String b="9999";
        int[] arra=new int[a.length()];
        int[] arrb=new int[b.length()];
        int numa=0,numb=0;
        for (int i = 0; i < a.length(); i++) {
            arra[i]=a.charAt(i)-48;//将ascii码类型的数据添加到数组当中时，需要将值减去48得到真正的整数值
            numa=(numa*10)+arra[i];
        }
        for (int i = 0; i < b.length(); i++) {
            arrb[i]=b.charAt(i)-48;//将ascii码类型的数据添加到数组当中时，需要将值减去48得到真正的整数值
            numb=(numb*10)+arrb[i];
        }


        System.out.println(numa+","+numb);
        System.out.println(numa*numb);

    }
}
